package org.lxh.demo.vo;

public class Worker extends Person {
    
	private float salary;
	
	public Worker(String id,String name,int age,float salary){
		super(id,name,age);
		this.setSalary(salary);
	}
	
	
	
	
	public float getSalary() {
		return salary;
	}


	public void setSalary(float salary) {
		this.salary = salary;
	}


	@Override
	public int compareTo(Object o) {
		
		return 0;
	}

}
